package com.xinou.daily_report.VO.integral;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xinou.daily_report.utils.CustomerDoubleSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author lizhongyuan
 */
@Data
public class IntegralListVO {

    @ApiModelProperty(value = "id")
    private Long id;

    private Long userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    private Long addUserId;

    @ApiModelProperty(value = "谁加的分")
    private String addUserName;

    @ApiModelProperty(value = "加分的原因")
    private String reason;

    @ApiModelProperty(value = "此次加的分数")
    private BigDecimal theIntegral;

    @ApiModelProperty(value = "类型0表示加分，1表示减分")
    private Integer integralType;

    @ApiModelProperty(value = "插入时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime insertTime;
}
